package com.party.core.dao.read.commune;

import com.party.common.paging.Page;
import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.commune.CIntegralType;
import com.party.core.model.commune.CIntegralTypeOutput;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @program: party
 * @description: 积分类型数据读取接口
 * @author: Hua Qunhao
 * @create: 2019-08-12 14:16
 **/
public interface CIntegralTypeReadDao extends BaseReadDao<CIntegralType> {

    List<CIntegralType> webPageList(@Param("params") Map<String, Object> params, Page page);

    List<CIntegralTypeOutput> queryMedalListByPmIdAndPartnerId(@Param("cuiPartnerId") String cuiPartnerId,
                                                               @Param("partnerId") String partnerId,
                                                               @Param("memberId") String memberId, Page page);

    List<CIntegralType> getAllTypes(String pmId);
    List<CIntegralTypeOutput> queryMedalListByPmIdAndPartnerId2(@Param("cuiPartnerId") String cuiPartnerId,
                                                               @Param("partnerId") String partnerId,
                                                               @Param("memberId") String memberId, Page page);
    CIntegralType getIntegralTypeByName(@Param("typeName") String typeName);
}
